package com.zhentao;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @Date 2024/3/25 15:55
 * @Author xdm
 **/

@SpringBootApplication
@EnableDiscoveryClient  //启动服务注册与发现
public class ProducerApplication {

    public static void main(String[] args) {
        SpringApplication.run(ProducerApplication.class,args);
    }


    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }

}
